package com.bosssoft.trainee.nontax.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;


@Data
@TableName("message")
public class Message extends Model<Message> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String content;
    private String username;
    private String time;
    private Long parentId;
    private Long foreignId;

    @TableField(exist = false)
    private String nickname;

    @TableField(exist = false)
    private Message parentMessage;

    @TableField(exist = false)
    private String avatar;


}
